]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: don't fail if fprintd unavailable
authorRay Strode <rstrode@redhat.com>
Fri, 27 Apr 2012 21:51:18 +0000 (17:51 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 2 May 2012 15:44:29 +0000 (11:44 -0400)
fingerprint support is optional so we shouldn't try to start
fprintd upfront and croak if it fails.

https://bugzilla.gnome.org/show_bug.cgi?id=675006

js/gdm/fingerprint.js

index 9c090b08afde831ace08f3b92eb59a7c02f8353b..13362c268b24ae7238c3d5a84e5fc3cf54f79e29 100644 (file)
@@ -11,10 +11,17 @@ const FprintManagerIface = <interface name='net.reactivated.Fprint.Manager'>
 </method>
 </interface>;
 
-const FprintManagerProxy = Gio.DBusProxy.makeProxyWrapper(FprintManagerIface);
+const FprintManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(FprintManagerIface);
 
 function FprintManager() {
-    return new FprintManagerProxy(Gio.DBus.system,
-                           'net.reactivated.Fprint',
-                           '/net/reactivated/Fprint/Manager');
-};
+    var self = new Gio.DBusProxy({ g_connection: Gio.DBus.system,
+                                   g_interface_name: FprintManagerInfo.name,
+                                   g_interface_info: FprintManagerInfo,
+                                   g_name: 'net.reactivated.Fprint',
+                                   g_object_path: '/net/reactivated/Fprint/Manager',
+                                   g_flags: (Gio.DBusProxyFlags.DO_NOT_AUTO_START |
+                                             Gio.DBusProxyFlags.DO_NOT_LOAD_PROPERTIES) });
+
+    self.init(null);
+    return self;
+}